<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
//前台首页
Route::get('/', function () {
    return view('index');
});

//前台注册
// Route::controller('/home/user','UserController');
Route::get('/home/register',function(){
	return view('home.register');
});
// Route::get('/admin','adminController@index');









//后台首页
Route::get('/admin','adminController@index');

//后台用户模块
Route::controller('/admin/user','UserController');

//后台类别模块
Route::controller('/admin/cate','CateController');
//后台文章管理
Route::controller('/admin/article','ArticleController');